package com.example.guideapp.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import com.example.guideapp.R;
import com.example.guideapp.bean.HistoryDay;

public class ShowHistoryDayActivity extends AppCompatActivity {

    private TextView tv_showHistory_content;
    private TextView tv_showHistory_time;
    private TextView tv_showHistory_title;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_history_day);

        tv_showHistory_content = (TextView) findViewById(R.id.tv_showHistory_content);
        tv_showHistory_time = (TextView) findViewById(R.id.tv_showHistory_time);
        tv_showHistory_title = (TextView) findViewById(R.id.tv_showHistory_title);

        HistoryDay.ResultBean rb = (HistoryDay.ResultBean) getIntent().getSerializableExtra("bean");
        tv_showHistory_content.setText(rb.getEvent());
        tv_showHistory_title.setText(rb.getTitle());
    }
}
